#读取文件
userinfo_path = r"date/userinfo.txt"

def write_userinfo(userinfo):
    with open(file = userinfo_path,mode="a+",encoding="utf-8") as f:
        f.write(userinfo)

def read_userinfo():
    with open(file = userinfo_path,mode="r",encoding="utf-8") as f:
        userinfo = f.readlines()
        return userinfo